package account.webapi;

class AppRuntimeException extends Exception {

    private final AppErrorCode errorCode;

    private final String message;

    public AppRuntimeException(AppErrorCode errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    public AppErrorCode getErrorCode() {
        return errorCode;
    }

    public String getMessage() {
        return message;
    }
}
